All Plays
Get all the AllDay Set structs.
Note: This will eventually be long.
Returns: [AllDay.PlayData]
- A list of all the AllDay play data
import AllDay from 0xALLDAYADDRESS
pub fun main(): [AllDay.PlayData] {
let plays: [AllDay.PlayData] = []
var id: UInt64 = 1
// Note < , as nextPlayID has not yet been used
while id < AllDay.nextPlayID {
plays.append(AllDay.getPlayData(id: id)!)
id = id + 1
}
return plays
}